<!-- 专栏 -->
<template>
  <div class="s-7e33f6d1">
    <div class="s3d7d0660">
      <div class="s-4a1de4fa">
        <div class="s68a72f26">{{specialCol.name}}</div>
      </div>
      <span v-if="!specialCol.id"></span>
      <div v-else class="s-1779dca2">
        <div class="s66a289f">查看全部</div>
      </div>
    </div>
    <div class="s382d54ba">
      <div class="s-48eca401" v-for="i in 8" :key="i">
        <img alt="" title="" src="../../assets/view.jpg" class="s-2bf8e690" style="background: none; width: 160px; height: 224px" />
        <div class="s-6322c42d">
          <span>1000+</span>
          <span>在学</span>
        </div>
        <div class="s7bbf52e4">蛋糕装饰专题：从入门到精通</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['specialCol'],
}
</script>

<style lang="scss" scoped>
.s-7e33f6d1 {
  background-color: #fff;
}
.s3d7d0660 {
  display: flex;
}

.s-4a1de4fa {
  font-size: 0;
  margin: 0 auto;
  padding-top: 25px;
  padding-bottom: 10px;
  flex: 1;
}
.s68a72f26 {
  font-size: 17px;
  line-height: 24px;
  color: #313131;
  vertical-align: middle;
  display: inline-block;
  margin-left: 15px;
  font-weight: bold;
}
.s-1779dca2 {
  text-align: right;
  font-size: 0;
  padding-top: 25px;
  padding-right: 15px;
  padding-bottom: 10px;
  flex: 1;
}
.s66a289f {
  font-size: 14px;
  line-height: 24px;
  color: #999999;
  vertical-align: middle;
  display: inline-block;
  margin-left: 15px;
}
.s382d54ba {
  padding: 0;
  margin: 0 auto;
  zoom: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overflow-y: hidden;
  white-space: nowrap;
  height: 270px !important;
}
.s-48eca401 {
  position: relative;
  margin-right: 10px;
  width: 160px !important;
  height: 270px !important;
  display: inline-block;
  vertical-align: top;
  zoom: 1;
  box-sizing: border-box;
  overflow: hidden;
  &:first-child {
    margin-left: 15px;
  }
}
.s-2bf8e690 {
  width: 160px !important;
  height: 225px !important;
  border-radius: 4px;
}
/* 图片里的文字 */
.s-6322c42d {
  position: absolute;
  left: 0;
  bottom: 53.5px;
  font-size: 11px;
  margin: 0 10px;
  padding: 2px 4px;
  border-radius: 4px;
  overflow: hidden;
  color: #4a4945;
  background-color: #fff;
}
/* 图片下的文字标题 */
.s7bbf52e4 {
  color: #4a4945;
  font-weight: bold;
  font-size: 15px;
  line-height: 20.25px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
  text-overflow: ellipsis;
  white-space: normal;
}
</style>